home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Createing Stationery
- Sent: 6/24/96 8:44 AM
- Received: 6/24/96 8:51 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >How can I tell when my ODF part is being launched to create stationery as
- >opposed to being launched from an existing file?
- >
- >-Neal
-
- There is no way to know that and this is not an ODF limitation. One could
- thing that ODPart::InitPart is called when a stationery is created and
- ODPart::InitPartFromStorage is called when a document (or stationery is
- opened) but this is not true. InitPart can also be called if another part
- instantiates your part by calling ODDraft::CreatePart.
-
- In ODF 2 I have added a parameter to FW_CPart::Initialize telling you if
- it was called by ODPart::InitPart or InitPartFromStorage but that still
- doesn't tell you if you were called to create a stationery or not.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-